Skip to content

Instantly share code, notes, and snippets.

@IPWright83
IPWright83 / .block
Last active July 26, 2026 19:48
Smooth Polygon Convex Hull
height: 960
@notesfromslavy
notesfromslavy / gist:c5b10f6dedbea03a33ac1f00520c038b
Created February 27, 2026 11:57
Habit Tracker (ask Claude again for any changes!)
// Test Habit Tracker - Full Year Edition
// Tap the widget to select which day(s) to mark!
// ============= CONFIGURATION =============
const HABIT_NAME = "test";
const WIDGET_BG_COLOR = new Color("#242424"); // Dark gray
const DOT_COMPLETE_COLOR = new Color("#FFB89A"); // Pastel orange for completed
const DOT_INCOMPLETE_COLOR = new Color("#3A3A3A"); // Darker gray for incomplete
const TEXT_COLOR = Color.white();
const BUTTON_BG = new Color("#FF9A76"); // Slightly darker orange for buttons
@sshh12
sshh12 / netflix-system-design-reverse-engineered.md
Created March 1, 2026 00:41
Netflix's web architecture reverse-engineered from live network traffic -- 18 named internal systems (Akira, Cadmium, Shakti, Pinot, MSL, FTL, Ichnaea...), dual API migration (Falcor → GraphQL), video streaming pipeline, DRM flow, search capability negotiation, and the full content data model. All from 177 captured requests.

Netflix System Design: A Grounded Teardown

A reverse-engineered system design of Netflix's web application, built entirely from live network traffic analysis of the authenticated browse experience. 177 requests captured, every API contract inspected, every subsystem named.

Architecture Overview

┌─────────────────────────────────────────────────────────────────────────────┐
│  BROWSER (Akira SPA)                                                        │
│                                                                             │
@sshh12
sshh12 / pr-artifact.sh
Created July 20, 2026 22:09
pr-artifact — attach images & videos to a pull request without committing binaries
#!/usr/bin/env bash
#/ pr-artifact — attach images & videos to a pull request without committing binaries.
#/
#/ HOW IT WORKS
#/ Screenshots, screen recordings and diagrams don't belong in git history — they
#/ bloat every clone, forever. But GitHub *release assets* live outside the git tree:
#/ they're blob storage hung off a tag, not commits. This script uploads your media
#/ as release assets and hands back a stable
#/ https://github.com/<owner>/<repo>/releases/download/<tag>/<file>
#/ URL you can paste straight into a PR description or comment.
@Mygod
Mygod / fp.md
Last active July 26, 2026 19:42
List of functionally perfect Pokemon in GO at level50/51

Deprecated. See https://rotomata.mygod.be/fp/

Functionally perfect at Lv50

Ivysaur, Butterfree, Ekans, Arbok, Pikachu, Raichu, Raichu-Alola, Nidoran♂, Gloom, Paras, Parasect, Venonat, Diglett, Diglett-Alola, Dugtrio, Dugtrio-Normal, Dugtrio-Alola, Growlithe-Hisuian, Doduo, Dodrio, Gengar, Onix, Drowzee, Hypno, Electrode, Electrode-Hisuian, Exeggcute, Marowak, Starmie, Omanyte, Kabutops, Snorlax, Bayleef, Feraligatr, Sentret, Furret, Hoothoot, Crobat, Togepi, Hoppip, Murkrow, Misdreavus, Snubbull, Teddiursa, Remoraid, Porygon2, Tyrogue, Combusken, Poochyena, Beautifly, Dustox, Lombre, Swellow, Pelipper, Shroomish, Breloom, Slakoth, Nincada, Lairon, Medicham, Plusle, Minun, Numel, Spoink, Spinda, Whiscash, Claydol, Kecleon, Tropius, Walrein, Clamperl, Metang, Piplup, Staraptor, Luxio, Roserade, Cranidos, Bastiodon, Wormadam, Wormadam-Trash, Pachirisu, Floatzel, Mismagius, Skuntank, Bronzong, Munchlax, Snover, Lickilicky, Togekiss, Mamoswine, Porygon Z, Probopass, Servine, Embo

@JBlond
JBlond / bash-colors.md
Last active July 26, 2026 19:39 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@jfarmer
jfarmer / python-hash.md
Created August 19, 2023 15:58
Explaining Python's hash() function and __hash__ magic method

Python's hash()

Authors's Note

This is an outline of how I'd explain hash to a novice programmer. I've given versions of this explanation hundreds of times to thousands of students, beginners and experts alike.

Students tell me they find it compelling because it helps them connect w/ what's really going on by emphasizing both the technical and human/design elements.

I'm assuming the student is comfortable with:

@zero666cool
zero666cool / runFirmwareExe.sh
Created July 13, 2026 14:36
Flashforge Creator 5 Jailbreak made by ano
#!/bin/sh
mkdir -p /usr/data/home/pwned
echo 'pwned:$1$Z8nL7oiO$szyo3IN6J1fuTM1zQ9Nw7.:0:0::/usr/data/home/pwned:/bin/sh' >> /etc/passwd
exit 0
@iamwildtuna
iamwildtuna / gist:7772b7c84a11bf6e1385f23096a73a15
Last active July 26, 2026 19:38
VPN IP Addresses (IP адреса ChatGPT, Copilot, Meta, Facebook, Instagram, YouTube, Medium, X ex. Twitter, Discord)
Meta (Instagram, Facebook)
// Узлы
157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32
157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38
57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97
// Подсети
213.102.128.0/24
204.15.20.0/22
199.201.0.0/16

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.